/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
  path: '/engineering',
  component: Layout,
  name: 'engineering',
  meta: {
    title: '工程管理',
    icon: 'el-icon-office-building'
  },
  children: [
    {
      path: 'design',
      component: () => import('@/views/design/design'),
      name: 'design',
      meta: { title: '资料管理', noCache: true, icon: 'list' }
    },
    {
      path: 'establish',
      component: () => import('@/views/engineering/establish'),
      name: 'establish',
      meta: { title: '项目汇总', noCache: true, icon: 'list' }
    },
    {
      path: 'mw',
      component: () => import('@/views/engineering/mw'),
      name: 'mw',
      meta: { title: '材料入库', noCache: true, icon: 'list' }
    },
    {
      path: 'eco',
      component: () => import('@/views/engineering/eco'),
      name: 'eco',
      meta: { title: '工程外包', noCache: true, icon: 'list' }
    },
    {
      path: 'fund',
      component: () => import('@/views/engineering/fund'),
      name: 'fund',
      meta: { title: '款项申请', noCache: true, icon: 'list' }
    },
    // {
    //   path: 'finish',
    //   component: () => import('@/views/engineering/finish'),
    //   name: 'finish',
    //   meta: { title: '完工报告', noCache: true, icon: 'list' }
    // },
    // {
    //   path: 'accept',
    //   component: () => import('@/views/engineering/accept'),
    //   name: 'accept',
    //   meta: { title: '验收报告', noCache: true, icon: 'list' }
    // },
    {
      path: 'warranty',
      component: () => import('@/views/engineering/warranty'),
      name: 'warranty',
      meta: { title: '质保处理', noCache: true, icon: 'list' }
    },
    // {
    //   path: 'form',
    //   component: () => import('@/views/engineering/form'),
    //   name: 'form',
    //   meta: { title: '工程表单', noCache: true, icon: 'list' }
    // },
    {
      path: 'todo',
      component: () => import('@/views/engineering/todo'),
      name: 'todo',
      meta: { title: '待办事项', noCache: true, icon: 'list' }
    }
  ]
}
